# 计算器
class JiSuanQi(object):
    def __init__(self, fuhao):
        self.fuhao = fuhao
    def yunsuan(self, a, b):
        if self.fuhao == '+':
            return a + b
        elif self.fuhao == '-':
            return a - b
        elif self.fuhao == '*':
            return a * b
        else:
            return a / b

j1 = JiSuanQi('/')
print(j1.yunsuan(12, 4))
